package com.kaigejava.juc;

/**
 * @author kaigejava
 * volatile关键字demo
 */
public class TestVolatile {
   public  void test(){
      int i = 0;
      i = i++;
      System.out.println(i);
   }

   public static void main(String[] args) {
      TestVolatile t = new TestVolatile();
      t.test();
      System.out.println("hello word");
   }

}
